package org.wang.portal.alert;
/**
 * @author: wangchao
 * @Date: 2025/2/11 08:53
 * @Description: AlertManager
 * @since 7.0.0
 **/


import org.wang.portal.task.MigrationTask;
import org.wang.portal.status.TaskStatus;

public class AlertManager {
    public void sendAlert(MigrationTask task) {
        if (task.getStatus() == TaskStatus.FAILED) {
            System.out.println("Alert: Task " + task.getName() + " has failed.");
            // 实际告警逻辑，如发送邮件、短信等
        }
    }
}